//
//  RMMMineHeadView.m
//  Romomo
//
//  Created by puman on 16/10/14.
//  Copyright © 2016年 mazegong. All rights reserved.
//

#import "RMMMineHeadView.h"

@implementation RMMMineHeadView
- (instancetype)initWithFrame:(CGRect)frame{
    if (self = [super initWithFrame:frame]) {
        self.backgroundColor = kBasicColor;
        UILabel *label = [[UILabel alloc] initWithFrame:CGRectMake(0, 54, self.width, kMaric)];
        label.textColor = kWhiteColor;
        label.textAlignment = NSTextAlignmentCenter;
        label.text = @"欢迎来到容么么";
        label.font = kFont(20);
        [self addSubview:label];
        
        _logingBut = [UIButton buttonWithType:(UIButtonTypeCustom)];
        _logingBut.frame = CGRectMake(kScreenWideth / 2 - kHalf, label.bottom + 18, 2 * kHalf, 36);
        _logingBut.backgroundColor = kWhiteColor;
        [_logingBut setTitleColor:kBasicColor forState:(UIControlStateNormal)];
        _logingBut.titleLabel.font = kBFont(14);
        _logingBut.layer.masksToBounds = YES;
        _logingBut.layer.cornerRadius = 18;
        [_logingBut setTitle:@"马上登录" forState:(UIControlStateNormal)];
        [self addSubview:_logingBut];

    }
    return self;
}
/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

@end
